﻿package classes  {
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	import flash.display.SimpleButton;
	import classes.Events.ButtonEvent;
	
	public class MainMenu extends MovieClip {

		public function MainMenu(){
			playBtn.addEventListener(MouseEvent.CLICK, sendStart);
		}
		public function sendStart(e:MouseEvent){
			
			dispatchEvent( new  ButtonEvent(ButtonEvent.PLAY));
		}

	}
	
}
